package com.hs.egova.base;

/**
 * 分页信息
 * @author husheng
 * @version v1.0
 * @date 2021/7/26 14:21
 * @email husheng@egova.com.cn
 */
public class PageInfo {

    /**
     * 总页数
     */
    private int totalPage = -1;
    /**
     *     当前页
     */
    private int currentPage = -1;
    /**
     * 总记录数
     */
    private int totalRecord = -1;
    /**
     * 当前页记录数
     */
    private int currentRecord = -1;
    /**
     * 每页包含记录数
     */
    private int numPerPage = -1;

    public PageInfo(int totalPage, int currentPage, int totalRecord, int currentRecord, int numPerPage) {
        this.totalPage = totalPage;
        this.currentPage = currentPage;
        this.totalRecord = totalRecord;
        this.currentRecord = currentRecord;
        this.numPerPage = numPerPage;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getTotalRecord() {
        return totalRecord;
    }

    public void setTotalRecord(int totalRecord) {
        this.totalRecord = totalRecord;
    }

    public int getCurrentRecord() {
        return currentRecord;
    }

    public void setCurrentRecord(int currentRecord) {
        this.currentRecord = currentRecord;
    }

    public int getNumPerPage() {
        return numPerPage;
    }

    public void setNumPerPage(int numPerPage) {
        this.numPerPage = numPerPage;
    }
}
